import axios from 'services/axiosConfig.js'
import { UserInfoApi } from 'services/apiConfig.js'

class UserInfoService {
  addUserInfo (userInfo) {
    return axios({
      method: UserInfoApi.addUserInfo.method,
      url: UserInfoApi.addUserInfo.url,
      data: userInfo
    })
  }
  getUserInfo (userId) {
    return axios({
      method: UserInfoApi.getUserInfo.method,
      url: UserInfoApi.getUserInfo.url + '?Userinfo.userid=' + userId
    })
  }
}

export default new UserInfoService()
